class Solution:
    def setZeroes(self, matrix) -> None:
        """
        Do not return anything, modify matrix in-place instead.
        """
        for i in range(len(matrix)):
            for j in range(len(matrix[0])):
                if matrix[i][j] == 0:
                    for x in range(len(matrix)):
                        matrix[x][j] = matrix[x][j] and "*"
                    for y in range(len(matrix[0])):
                        matrix[i][y] = matrix[i][y] and "*"
        for i in range(len(matrix)):
            for j in range(len(matrix[0])):
                if matrix[i][j] == "*":
                    matrix[i][j] = 0
        # return matrix

a = Solution()
print(a.setZeroes([[1, 1, 1],
                   [1, 0, 1],
                   [1, 1, 1]]))
print(a.setZeroes([[0,1,2,0],
  [3,4,5,2],
  [1,3,1,5]]))